package fr.emse.tatiana.analysis.annotation.categorisation;
import java.util.List;
import java.util.Vector;

import org.eclipse.core.resources.IFile;
import org.eclipse.jface.action.IAction;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IWorkbenchWindow;

import fr.emse.tatiana.analysis.annotation.AnnotationAnalysisEditor;
import fr.emse.tatiana.analysis.annotation.actions.NewAnnotationAnalysisAction;
import fr.emse.tatiana.analysis.annotation.actions.NewCategAnalysisAction;
import fr.emse.tatiana.analysis.annotation.actions.NewCategFromFileAnalysisAction;
import fr.emse.tatiana.extensionprovider.IAnalysisActivator;


public class CategorisationAnalysisActivator implements IAnalysisActivator {

	public IEditorInput getInput(IFile file) {
		return new CategorisationAnalysisInput(file);
	}

	public List<IAction> getNewAnalysisActions(IWorkbenchWindow window,
			String navigationView) {
		List<IAction> ret = new Vector<IAction>();
		ret.add(new NewCategFromFileAnalysisAction(window, "Categorisation from file...", CategorisationAnalysisEditor.ID, navigationView));
		ret.add(new NewCategAnalysisAction(window, "Categorisation (from scratch)", CategorisationAnalysisEditor.ID, navigationView));
		return ret;
	}

}
